﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Leffaetsin.Models;

namespace Leffaetsin.Views.Home.Models
{
    public class HomeModel
    {
        public IEnumerable<Leffaetsin.Models.Movie> Movies { get; set; }
        public IEnumerable<string> Areas { get; set; }

        public string Joo { get; set; }

        public IEnumerable<SelectListItem> AreaSelectListItems { get { return Areas.Select(ToSelectListItem); }
        }

        private SelectListItem ToSelectListItem(string area)
        {
            return new SelectListItem()
            {
                Value = area,
                Text= area
            };
        }
    }
}